package com.lethelh.factory;

import java.util.Scanner;
/**
 * 橘子测试类
 * @author jasonper
 */
public class OrangeTest {
    public static void main(String[] args) {
        System.out.println("你想吃哪里的橘子?北方or南方");
        Scanner sc = new Scanner(System.in);
        String area = sc.next();
        Orange orange = OrangeFactory.getOrange(area);
        if (orange != null){
            orange.getAreaOrange();
        }else {
            System.out.println("没有您要的橘子哦~");
        }
    }
}
